package org.zfm.util.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public enum ThreadPoolUtil {
    INSTANCE;
    private static final ExecutorService EXECUTOR_SERVICE;
    static {
        EXECUTOR_SERVICE = Executors.newFixedThreadPool(6);
    }
    //@Todo 创建线程工具类
    public ExecutorService getThreadPool(){
        return EXECUTOR_SERVICE;
    }
}
